package com.bargate.domain.spring.expression.value;

import org.springframework.beans.factory.annotation.Value;

/**
 * Created by IntelliJ IDEA.
 * User: EAD-MASTER
 * Date: 18/09/2010
 * Time: 23:34:35
 * To change this template use File | Settings | File Templates.
 */
public class LogicalOperations {

    @Value("#{Hurricane.type eq 'Hurricane' or Tornado.type =='Tornado'}")
    private Boolean isHarmful;
    @Value("#{Hurricane.type=='Hurricane'}")
    private Boolean isAHurricane;
    @Value("#{Hurricane.maxWindVelocity gt Tornado.maxWindVelocity}")
    private Boolean isFasterThenTornado;

    public Boolean getHarmful() {
        return isHarmful;
    }

    public Boolean getAHurricane() {
        return isAHurricane;
    }

    public Boolean getFasterThenTornado() {
        return isFasterThenTornado;
    }
}
